QuickTime Movie File Format Specification, May 1996
| Previous | Chapter contents | Chapter top | Next |
A time code track specifies time code information for other tracks. The time code keeps track of the time codes of the original source of the video and audio. After a movie has been edited, the time code can be extracted to determine the source tape and the time codes of the frames.
It is important that the time code track has the same time scale as the video track. Otherwise, the time code will not tick at the exact same time as the video track.
For each contiguous source tape segment, there is a single time code sample that specifies the time code value corresponding to the start of the segment. From this sample, the time code value can be determined for any point in the segment.
The sample description for a time code track specifies the time code system being used (for example, 30 fps drop-frame) and the source information. Each sample is a time code value.
Since the time code media handler is a derived from the base media handler, the media information atom starts with a generic media header atom. The time code atoms would contain the following data values:
The sample table atom contains all the standard sample atoms and has the following data values:
In the example, let's assume that the segment's beginning time code is 1:15:32.4 (1 hour, 15 minutes, 32 seconds, and 4 frames). This time would be expressed in the data file as 0x010F2004 (0x01 = 1 hour; 0x0F = 15 minutes; 0x20 = 32 seconds; 0x04 = 4 frames).
The video and audio tracks must contain a track reference atom to indicate that they reference this time code track. The track reference is the same for both and is contained in the track atom (at the same level as the track header and media atoms).
This track reference would contain the following data values:
In this example, the video and sound tracks are tracks 1 and 2. The time code track is track 3.
| Previous | Chapter contents | Chapter top | Next |